class PaymentController < ApplicationController
  include PaymentHelper

  def payment
  end

  def ajax_goods_inventory
    @goods_count = GoodsInventory.all
    render :json => @goods_count
  end

  def save_good_remain_count
    GoodsInventory.all.each do |i|
      count_update(params,i)
    end
    render :json => {:status => true}
  end

  def remove_back_goods_info
    CartGood.destroy_all
    redirect_to '/list/product_list'
  end
end
